package com.qzsoft.zhjd.server.handler;

/**
 * @ClassName BizException
 * @Description 自定义异常
 * @author linhuawei
 * @since 2022-08-31
 */
public class BizException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private int code = 500;

    private String message = "ERROR";

    public BizException() {
    }

    public BizException(String message) {
        this.message = message;
    }

    public BizException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
